<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:fragment="topbar" class="mainmenu-area" data-spy="affix" data-offset-top="205">
    <div class="mainmenu-row container ">
        <!-- Site-Logo-Start -->
        <div class="site-logo">
            <!-- Text-Logo-Markup -->
            <h2 class="logo-text"><a th:href="@{/index.html}" href="index.html">Bi Jia Wang</a></h2>
            <!-- Image-Logo-Markup -->
            <!-- <a href="#" class="logo-image">
          <img src="logo.png" alt="">
          </a> -->
        </div>
        <!-- Site-Logo-End -->
        <div class="menu-right">
            <!-- Primary-Menu-Start -->
            <nav class="primary-menu" id="mainmenu">
                <ul class="navbar-nav">
                    <li class="menu-home"><a class="nav-link" href="index.html" th:href="@{/index.html}">首页</a></li>
                    <li>
                        <a class="nav-link" href="#blog-section" th:href="@{/userLogin}" sec:authorize="isAnonymous()" >xxx，个人中心</a>
                        <a class="nav-link" href="#blog-section" th:href="@{/ToUserInfo/} + ${#authorization.authentication.name}" sec:authorize="isAuthenticated()"><span sec:authentication="name" ></span>，个人中心</a>
                        <ul class="sub-menu">
                            <li><a href="#" th:href="@{/tohistory/1}">历史记录</a></li>
                            <li><a href="#" th:href="@{/favorites/1} ">收藏夹</a></li>
                            <li><a onclick="abc()">注销</a></li>
                        </ul>
                    </li>
                </ul>
            </nav>
            <!-- Primary-Menu-End -->
            <!-- Search-Form-Tigger-Button -->

            <!-- Mobile-Menu-Tigger-Button -->
            <div class="toggle-menu">
                <button type="button" class="navi-trigger">
                    <span class="bar"></span>
                    <span class="bar"></span>
                    <span class="bar"></span>

                </button>
            </div>
        </div>
    </div>
</div>


<div th:fragment="left" class="u_nav">
    <ul>
        <li><a th:class="${active == 'UserInfo' ?'current':''}" class="current" href="#" th:href="@{/ToUserInfo/} + ${#authorization.authentication.name}" >我的资料</a></li>
        <li><a th:class="${active == 'History' ?'current':''}" href="#" th:href="@{/tohistory/1}">历史记录</a></li>
        <li><a th:class="${active == 'Favorites' ?'current':''}" href="#" th:href="@{/favorites/1}">收藏夹</a></li>
    </ul>
</div>



</body>
</html>